include(/mnt/Datos/Facultad/Latex/circuit_macros/pgf.m4)
include(/mnt/Datos/Facultad/Latex/circuit_macros/libcct.m4)
   
.PS 
cct_init
  
elen = 1
Origin: Here
	ground
	source(up_ elen, AC); llabel(, v_{s})
	resistor(right_ elen); rlabel(, R_{s},)
	{
		resistor(down_ elen); llabel(, R_{G},); rlabel(+,vi_1,-); ground
		R: Here
	}
	line right_ elen*0.3
	MOS:mosfet(up_ ,, LEDSQuB,S) with .G at Here; 
	line from MOS.S down_ 0.7; ground
	line from MOS.D to (MOS.D.x, MOS.D.y + 0.1)
	resistor(right_ elen*0.7); llabel(, 50~\Omega, )
	MOS2:mosfet(left_ ,,LEDSuB) with .S at (Here.x+0.5, Here.y)
	resistor(right_ elen*0.7 from MOS2.S); llabel(, 100~\Omega,)
	{
		resistor(down_ elen*0.7); rlabel(, R_{ca},); llabel(+,vo_2,-);ground
	}
	line up_ 0.2 from MOS2.B
	line left_ 0.3 
	line down_ 0.55
	line left_ to MOS.B
	line down_ 0.7 from MOS2.G; ground
.PE
